import service from "@/util/request";

// 封装post
export function userLogin(data) {
    return service({
        url: '/user/login',
        method: 'post',
        data
    })
}
export function userInsert(data) {
    return service({
        url: '/user/insert',
        method: 'post',
        data
    })
}
export function userUpdate(data) {
    return service({
        url: '/user/update',
        method: 'post',
        data
    })
}
export function userGet(params) {
    return service({
        url: '/user/search',
        method: 'get',
        params
    })
}
export function userDelete(params) {
    return service({
        url: '/user/delete',
        method: 'get',
        params
    })
}